package util;

import javax.servlet.http.HttpServletResponse;

public class JsonHelp {

	public static String renderJson(HttpServletResponse response, String content){
		response.setContentType("application/json");
		response.setCharacterEncoding("UTF-8");
		response.setHeader("Cache-Control", "no-cache");
		java.io.PrintWriter pw = null;
		try{
			pw = response.getWriter();
			pw.write(content);
		}catch (Exception e){
			//
		}finally{
			pw.close();
		}
		return null;
	}
	
}
